#include <stdio.h>

void swapNumber(int *a, int *b);

main()
{
	int x = 5, y = 3;
	printf("x = %p, y = %p\n", &x, &y);

	swapNumber(&x, &y);
	printf("x = %p, y = %p\n", &x, &y);
}

/* 此时函数仍然操作的是x,y地址的副本，不会改变x,y原先的地址 */
void swapNumber(int *a, int *b)
{
	int *temp;
	temp = a;
	a = b;
	b = temp;
}